﻿/* Adapted from the Aquiles project: http://aquiles.codeplex.com/. */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lucandra.Net.Connection.Endpoint
{
    internal sealed class CassandraEndpoint
    {
        public string Host { get; private set; }
        public ushort Port { get; private set; }
        public int Timeout { get; private set; }

        public CassandraEndpoint(string host, ushort port, int timeout)
        {
            this.Host = host;
            this.Port = port;
            this.Timeout = timeout;
        }

        public override string ToString()
        {
            return string.Format("{{Host={0}, Port={1}, Timeout={2}}}", this.Host, this.Port, this.Timeout);
        }
    }
}
